using System;
using System.Collections.Generic;
using System.Text;
using System.IO;

namespace Test.Support {
	class NewLineInsGen {


		static void MainX() {
			List<string> lst=new List<string>();
			for(int i=0;i<120;i++)
			{
				string str=string.Format("{0:00000000}",i);
				lst.Add(Next.Whs.Common.Framework.Validators.TransportModuleValidator.Instance.ApplyCheckDigit(str));

			}
			File.WriteAllLines(@"P000994320TmsCD2.bar",lst.ToArray());

		}
		static void MainC() {


			string[] lines=File.ReadAllLines(@"C:\branch.txt");
			foreach(string line in lines)
			{
				string[] details=line.Split('\t');
				if(details[2]=="Preston Brook")
					Console.WriteLine("insert into LaunchTopBranch(Branch)values('{0:0000}')",int.Parse(details[0]));
			}


		}
		static void MainXb() {




			string[] lines=File.ReadAllLines(@"C:\NewLine.txt");
			foreach(string line in lines)
			{
				string[] details=line.Split('\t');
				if(details[5]=="N")
					Console.WriteLine("insert into NewLineItemsforLaunch(ItemNumber)values('{0}')",details[3]);
			}
		}
	}
}
